import Vue from 'vue'
import App from './App.vue'
//引入并使用vuex
import vuex from 'vuex'
Vue.use(vuex);
Vue.config.productionTip = false

// import { createApp } from 'vue';
// import { Toast } from 'vant';

// const app = createApp();
// app.use(Toast);

import { Toast } from 'vant';
Vue.prototype.Toast = Toast

import "./assets/css/reset.css"
import "./assets/js/rem.js"
import "./assets/font/iconfont.css"


import router from "./router/index.js"
//引入全局组件
import "./components/index.js"


import "vant/lib/index.css"
import Vant from "vant/lib/index.js"
Vue.use(Vant)

import store from "./store/index.js"

new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
